package com.dangdang.domain;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-1-21
 */
public class Book {

	private Integer id;
	/** 图书名称 */
	private String name;

	/** 图书作者 */
	private String author;

	/** 出版社 */
	private String publisher;

	/** 出版时间 */
	private Date publishDate;

	/** 价格 */
	private double price;

	/** 该图书所述分类 */
	private Set<Category> category = new HashSet<Category>(0);

	public Book() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPublisher() {
		return this.publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public Date getPublishDate() {
		return this.publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public double getPrice() {
		return this.price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public Set<Category> getCategory() {
		return this.category;
	}

	public void setCategory(Set<Category> category) {
		this.category = category;
	}

	@Override
	public String toString() {
		return name + ":" + publisher;
	}

}
